<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>
<%@ page import="com.yuan.pojo.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/16
  Time: 14:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>数组、集合、下标</title>
</head>
<body>
    <%
        request.setAttribute("age",17);
    %>

    <c:if test="${age<18}">
        你未成年，请离开
    </c:if>

    <c:if test="${age>=18}">
        你已经成年，可以访问
    </c:if>

</body>
</html>
